import '../repository/novel_repository.dart';
import 'usecase.dart';

class SubscribeNovelUseCase extends UseCase<void, String> {
  final NovelRepository repository;

  SubscribeNovelUseCase(this.repository);
  @override
  Future<void> call(String params) async {
    return repository.novelSubscribe(params);
  }
}

class UnsubscribeNovelUseCase extends UseCase<void, String> {
  final NovelRepository repository;

  UnsubscribeNovelUseCase(this.repository);
  @override
  Future<void> call(String params) async {
    return repository.novelUnsubscribe(params);
  }
}
